package cn.bdqn.service;

import cn.bdqn.pojo.Customer;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

public interface CustomerService {
   public void addCustomer(Customer customer);

   /**
    * 分页查询客户信息列表
    * @param custName
    * @param custNo
    * @param region
    * @param managerName
    * @param level
    * @param pageNo
    * @param pageSize
    * @return
    */
   public IPage<Customer> getCustomersByPage(String custName, String custNo, String region, String managerName,
                                             String level, Integer pageNo, Integer pageSize);

   /**
    * 根据客户编号，查询客户信息
    * @param custNo
    * @return
    */
   public Customer getCustomer(String custNo);

   /**
    * 修改客户信息
    * @param customer
    * @return
    */
   public void updateCustomer(Customer customer);

   /**
    * 删除客户信息
    * @param custNo
    * @return
    */
   public int deleteCustomer(String custNo);

   /**
    * 查询所有客户信息
    * @return
    */
   public List<Customer> findAllCustomers();

}
